package com.sohoometer.station.services;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nari.coreframe.service.GenericServiceImpl;
import com.nari.platform.model.PageCond;
import com.nari.platform.model.ResultWithPageCond;
import com.sohoometer.station.bean.WaterMeterData;
import com.sohoometer.station.bean.WaterMeterInfo;
import com.sohoometer.station.dao.WaterMeterDataDao;

@Service("waterMeterDataService")
public class WaterMeterDataServiceImpl extends GenericServiceImpl<WaterMeterData, String> implements 	WaterMeterDataService {
	@Autowired
	private WaterMeterDataDao  waterMeterDataDao;
	
	
	@Autowired
	public WaterMeterDataServiceImpl(WaterMeterDataDao waterMeterDataDao) {
		setiGenericDao(waterMeterDataDao);
		this.waterMeterDataDao = waterMeterDataDao;
	}


	@Override
	public ResultWithPageCond<WaterMeterData> queryWaterMeterDatas(
			String waterMeterNo, List<WaterMeterInfo> meters,
			Date startQueryTime, Date endQueryTime, PageCond pageCond) {
		return waterMeterDataDao.queryWaterMeterDatas(waterMeterNo,meters,startQueryTime,endQueryTime,pageCond);
	}
}
